﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                 assembly="Inovout.Membership"
				        namespace="Inovout.Membership.Security">

  <class name="Privilege" table="Security_Privilege">
    <id name="Id" access="field.camelcase"
        column="PrivilegeId" type="Int32">
      <generator class="native" />
    </id>
    <property name="Name" />
    <property name="Identifier" unique="true" access="field.camelcase" />
    <many-to-one name="Resource" column="ResourceId" foreign-key="FK_Membership_Resource_ResourceId_Membership_Privilege_PrivilegeId" class="Inovout.Membership.Security.Resource,Inovout.Membership" />
    <many-to-one name="Operation" column="OperationId"  foreign-key="FK_Membership_Operation_OperationId_Membership_Privilege_PrivilegeId" class="Inovout.Membership.Security.Operation,Inovout.Membership" />
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>


